// TODO: CODE REVIEW & CLEANUP!
//
// GrAv.xaml.cs
//

using System.Windows.Controls;

namespace HomeUX.ClientApp
{

public partial class GrAv : UserControl
{
    public GrAv()
    {
        InitializeComponent();
		Loaded += GameRoom_Loaded;
    }

    private void GameRoom_Loaded(object sender, System.Windows.RoutedEventArgs e)
    {
		TheMediaControl.TheTouchTabStrip.SelectedItemDataChanged += TheTouchTabStrip_SelectedItemDataChanged;
        TheTouchTabStrip_SelectedItemDataChanged(null, null);
    }

    private void TheTouchTabStrip_SelectedItemDataChanged(object sender, System.EventArgs e)
    {
        switch (TheMediaControl.TheTouchTabStrip.SelectedItemData)
        {
        case "TheTiVoControl":
            HearButton.Text = "Listen to\nTiVo";
            HearButton.SyncPath = @"Scripts\Game Room\Listen to TiVo";
            WatchButton.Text = "Watch\nTiVo";
            WatchButton.SyncPath = @"Scripts\Game Room\Watch TiVo";
            break;
        case "TheMusicControl":
            HearButton.Text = "Listen to Music";
            HearButton.SyncPath = @"Scripts\Game Room\Listen to Music";
            WatchButton.Text = "N/A";
            WatchButton.SyncPath = null;
            break;
        case "TheDvdControl":
            HearButton.Text = "Listen to\nDVD/CD";
            HearButton.SyncPath = @"Scripts\Game Room\Listen to DVD/CD";
            WatchButton.Text = "Watch\nDVD/CD";
            WatchButton.SyncPath = @"Scripts\Game Room\Watch DVD";
            break;
        case "TheVcrControl":
            HearButton.Text = "Listen to\nVCR";
            HearButton.SyncPath = @"Scripts\Game Room\Listen to VCR";
            WatchButton.Text = "Watch\nVCR";
            WatchButton.SyncPath = @"Scripts\Game Room\Watch VCR";
            break;
        }
    }
}

}
